{% extends "base.html" %}
{% load nav_extras %}
{% block header%}
<script type="text/javascript">
    var myCalendar;
    function doOnLoad() {
        myCalendar = new dhtmlXCalendarObject([ "dt1", "dt2" ]);
        myCalendar.loadUserLanguage('cn');
    }
</script>
{% endblock%}
{% block content %}
<div class="searchBar">
  <form action="{{full_path}}" method="post">
    {% csrf_token %} <br /> 起始日期：<input type="text" id="dt1" name="dt1" value="{{dt1|date:'Y-m-d'}}" /> 终止日期：<input type="text"
      id="dt2" name="dt2" value="{{dt2|date:'Y-m-d'}}" /><br /> <input type="submit" value="检索" />
  </form>
</div>
 <!--   <h2>{{who}}的回顾</h2> -->
    <div class="pageContent">
        <table class="dhtmlxGrid" gridHeight="auto" name="grid2" imgpath="/static/js/codebase/imgs/" width="98%" lightnavigation="true">
    <tr>
            <td type="ro">编号</td>
            <td type="ro">标题</td>
            <td type="ro">关键字</td>
            <td type="ro">创建者</td>
            <td type="ro">报表类型</td>
            <td type="ro">开始时间</td>
            <td type="ro">结束时间</td>
            <td type="ro">状态</td>
            <td type="ro">操作</td>
            </tr>
            {%for schedule in list.object_list%}
                <tr >
                <td>{{schedule.id}}</td>
                <td >{{schedule.title}}</td>
                <td >{{schedule.keyword}}</td>
                <td >{{schedule.created_by.last_name}}</td>
                <td >{{schedule.schedule_type.name}}</td>
                <td >{{schedule.start_date|date:"Y-m-d"}}</td>
                <td >{{schedule.end_date|date:"Y-m-d"}}</td>
                <td >{% if schedule.status == 0 %}开放{%endif%}{% if schedule.status == 1 %}已提交{%endif%}{%if schedule.status == 2 %}已审核{%endif%}{%if schedule.status == 3 %}已回顾(提交){%endif%}</td>
                <td >
                    <a href="/schedule/view/{{schedule.id}}" target="dialog" rel="view_schedule" title="查看计划">查看</a>
                </td>
                </tr>
            {%endfor%}
        </table>
    </div>
<div class="pagination">
  {% paging_nav nav_url pn pc %} 
  </div>
{% endblock %}